package com.sg.business.commons.labelprovider.organization;

import org.eclipse.jface.viewers.ColumnLabelProvider;

import com.sg.business.model.Organization;
import com.sg.business.model.User;

public class OrgPathNameLabelProvider extends ColumnLabelProvider {
	@Override
	public String getText(Object element) {
		String result = "";
		if (element instanceof User) {
			User user = (User) element;
			Organization org = user.getOrganization();
			if(org != null) {
				String path = org.getPath();
				result = result + path;				
			}
		}
		return result;
	}
}
